//
//  MyAFN.h
//  coba-iOS
//
//  Created by 郭四虎 on 15/11/19.
//  Copyright © 2015年 YouKu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@interface MyAFN : NSObject

+ (NSURLSessionDataTask *)POST:(NSString *)url parameters:(id)parameters withData:(NSData *)data andDataname:(NSString *)name block:(void (^)(id))finishedBlock error:(void(^)(NSError *error))errorBlock fromController:(UIViewController *)con;

+ (NSURLSessionDataTask *)POST:(NSString *)url parameters:(id)parameters block:(void (^)(id responseObject))finishedBlock error:(void(^)(NSError *error))errorBlock fromController:(UIViewController *)con;

+(void)GET:(NSString *)url success:(void (^)(NSDictionary *responseObj))finishBlock error:(void (^)(NSError *error))errorBlock fromController:(UIViewController *)con;

@end
